package com.hrd.service;

import com.hrd.common.util.bean.ServiceResult;
import com.hrd.mybatis.bean.auto.HrdWarehouseRelation;
import com.hrd.mybatis.bean.ext.ExtOrderModel;

import java.util.List;

/**
 * @author 刘江宁
 * @create 2022/1/12 17:58
 */
public interface OrderService {
    /**
     * 同步收款单
     */
    ServiceResult<String> syncCollectionOrder();
    /**
     * 销售出库单
     */
    ServiceResult<String> syncSalesOutboundOrder();
    /**
     * 采购入库单
     */
    ServiceResult<String> syncBuyEntryOrder();

    /**
     * 查询订单列表
     * @param form
     * @return
     */
    ServiceResult<List<ExtOrderModel>> list(ExtOrderModel form);
    /**
     * 查询订单总条数
     * @param form
     * @return
     */
    Integer count(ExtOrderModel form);

    /**
     * 更新订单信息
     * @param form
     * @return
     */
    ServiceResult<ExtOrderModel> synchOrder(ExtOrderModel form);
    /**
     * 手动同步付款单
     * @param form
     * @return
     */
    ServiceResult<ExtOrderModel> fkOrderSynchAction(ExtOrderModel form);
    /**
     * 手动同步出库单
     * @param form
     * @return
     */
    ServiceResult<ExtOrderModel> ckOrderSynchAction(ExtOrderModel form);
    /**
     * 手动同步入库单
     * @param form
     * @return
     */
    ServiceResult<ExtOrderModel> rkOrderSynchAction(ExtOrderModel form);

    ServiceResult<ExtOrderModel> allOrderSynchAction(ExtOrderModel form);

}
